package server;
import model.GameStake;
import model.GameType;
import model.HoldEmGame;
import model.Player;
import model.Settings;
import toolkit.Debug;

public class Test
{
	public static void main(String[] args) throws Exception
	{
		// This file is for debug purpose. It will play a poker game, and choose is own actions.
		Debug.setTextual(true);
		
		HoldEmGame game = new HoldEmGame(GameType.SINGLE_TABLE, GameStake.NO_LIMIT, 1, 4);
		game.setBuyin(10);
		game.open();
		
		Player player1 = new Player("Kees");
		player1.setPassword("test");
		
		Settings settings1 = new Settings();
		player1.setSettings(settings1);
		
		game.join(player1, 0);
		
		Player player2 = new Player("Truus");
		player2.setPassword("test");
		
		Settings settings2 = new Settings();
		settings2.useAutoMuck(true);
		player2.setSettings(settings2);
		
		game.join(player2, 1);
		
		Player player3 = new Player("Jan");
		player3.setPassword("test");
		
		Settings settings3 = new Settings();
		settings3.useAutoMuck(true);
		player3.setSettings(settings3);
		
		game.join(player3, 2);
		
		Player player4 = new Player("Frederick");
		player4.setPassword("test");
		
		Settings settings4 = new Settings();
		player4.setSettings(settings4);
		
		game.join(player4, 3);
	}
}